<?php
/**
 * Created by PhpStorm.
 * User: dy
 * Date: 2020/1/8
 * Time: 13:36
 */
namespace app\common\model;
use app\common\enum\FileEnum;

class FileModel extends BaseModel
{
    protected $name = 'file';
    public function getTypeTextAttr($value,$data){
        return FileEnum::type[$data['type']];
    }
}